package Dame;

public class test2 {
    public static void main(String[] args) {
        useAddable(new base() {
            @Override
            public int useAddable(int a, int b) {
                return 0;
            }
        });
        useAddable((a, b) -> 0);
    }
    public static void useAddable(base base){
           int sum =base.useAddable(10,20);
        System.out.println(sum);
    }
}

interface base {
    int useAddable(int a ,int b);
}
